package com.doudou.client.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @Author: 傻男人
 * @Date: 2020/5/26 11:15
 * @Version: 1.0
 * @Description: 测试client
 */
@FeignClient(name = "user")
public interface BackendClient {
    /**
     * 列表
     */
    @GetMapping(value = "/manager/backend", consumes = MediaType.APPLICATION_JSON_VALUE)
    String backendTest(@RequestParam("name") String name);
}
